chore: remove warnings for assertNotRegexpMatches method#32753
chore: remove warnings for assertNotRegexpMatches method#32753UsamaSadiq merged 1 commit intoopenedx:masterfrom
Conversation
|
Thanks for the pull request, @diegovr! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
|
@e0d could you please enable the tests to run |
|
Hi @e0d - The pipeline is 🟢. |
|
@UsamaSadiq this PR was submitted based on an issue you authored. Are you the best reviewer? |
|
@UsamaSadiq could you please review this PR? |
|
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
|
2U Release Notice: This PR has been deployed to the edX production environment. |
Description
Issue: openedx/public-engineering#157
assertNotRegexpMatcheswithassertNotRegexmethod. This will remove the DeprecationWarning logs.Supporting information
Python 3 renamed
assertRegexpMatchestoassertRegex, andassertNotRegexpMatchestoassertNotRegex.However, they did not add an alias for assertNotRegexpMatches until Python 3.5 (see https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertNotRegex)